package com.shangxian.giveithome.code;



public enum ImgFeiCode implements Code {
    FILE_SIZE(false, 21002, "图片不能大于5M"),
    FILE_NOT_NULL(false, 21003, "删除文件地址不能为空"),
    USER_NOT_PRE(false, 21004, "用户不匹配"),
    MECHANISM_NOT_PRE(false, 21006, "机构不匹配"),
    KEY_ID_NOT_PRE(false, 21008, "查询结果不匹配"),
    MECHANISM_NOT_DATA(false, 21007, "未查询到相关机构"),
    DELETE_ERROR(false, 21005, "删除失败"),
    UPLOAD_NOT_NULL(false, 21000, "上传文件不能为空"),
    UPLOAD_ERROR(false, 21001, "上传文件失败");

    private boolean success;

    private Integer code;

    private String message;

    ImgFeiCode(boolean success, Integer code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }

    @Override
    public boolean success() {
        return this.success;
    }

    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String message() {
        return this.message;
    }
}
